<template>
    <div class="app">
        <!-- 头部搜索框 start -->
        <TopBar />
        <!-- 头部搜索框 end -->
        <!-- 首页正文 start -->
        <div class="content-box">
            <router-view></router-view>
        </div>
        <component :is="$route.meta.bottom"></component>
        <BackBtn v-if="!$route.meta.hideBack"></BackBtn>
        <!-- 首页正文 end -->
    </div>
</template>
<script>
import TopBar from "./components/TopBar.vue";

import FooterBox from "./components/FooterBox.vue";
export default {
    data() {
        return {

        };
    },
    methods: {

    },
    components: {
        TopBar,
        FooterBox
    }
};
</script>
<style lang="less" scope>
// @import "./less/var.less";
.app {
    max-width: 750px;
    margin: 0 auto;
    position: absolute;
    top: 0px;
    bottom: 0px;
    left: 0px;
    right: 0px;
    background-color: @light;
    overflow: hidden;
    * {
        background-color: @light;
    }
}
.content-box {
    background-color: #cccccc;
    position: absolute;
    top: @topHeight;
    bottom: 0rem;
    left: 0rem;
    right: 0rem;
}
</style>